<%--
说明：命令信息列表 明细页面

@author liuxun 2012-03-19
--%>
<%@ include file="../../common/common.jsp"%>
<%
	response.setHeader("Pragma", "No-cache");
	response.setHeader("Cache-Control", "no-cache");
	response.setDateHeader("Expires", 0);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
<meta http-equiv="Expires" content="0" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Pragma" content="no-cache" />

<title>命令信息列表</title>
<script type="text/javascript" charset="UTF-8">

var opeForm;
var grid;

$(function(){
	opeForm = $('#opeForm');

	grid=$('#listTable').datagrid({
		title: '命令信息列表',
		frozenColumns:[[
            //{title:'选择',field:'ck',checkbox:true}
		]],
		columns:[[

            {title:'命令代码',field:'cmd_code',align:'center',width:80},

            {title:'命令值',field:'cmd_value',align:'center',width:80}
        ]],
		pagination:true,
		singleSelect: false
	});

	queryOperation();

});

//翻页时自动调用此函数
function onLoadPrev(msg){
	var queryParams=grid.datagrid('options').queryParams;
	queryParams['firstQuery']=false;
}

//查询操作
function queryOperation(){
	var params = opeForm.serializeObject();
	grid.datagrid("options").pageNumber = 1;
	grid.datagrid({
		url: 'D_CMD_INFO!queryList.do',
		queryParams: jQuery.extend({}, params, {'firstQuery': true})
	});
}
</script>
</head>

<body>
  <%-- 查询条件form --%>
  <form id="opeForm" name="opeForm">
  <input type="hidden" id="cmd_policy_id" name="model.cmd_policy_id" value="${model.cmd_policy_id}"/>
    <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
      <tr height="100%">
        <td>
          <table id="listTable"></table></td>
      </tr>
    </table>
  </form>
</body>
</html>
